<script type="text/javascript">
  var str = "Visit Xust!";
  document.write(str.replace(/Xust/, "Xidian"));
</script>